Skip to content

feat: Add EKS handlers #1254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: jimmi/add-eks-external-api
Choose a base branch
from

Conversation

jimmidyson
Copy link
Member

Reusing as much as possible of the AWS handlers, with slight tweaks.

What problem does this PR solve?:

Which issue(s) this PR fixes:
Fixes #

How Has This Been Tested?:

Special notes for your reviewer:

Requires #1253.

@@ -124,6 +125,10 @@ func main() {
// It allows to specify configuration under a single variable.
genericMetaHandlers := generic.New()

// eksMetaHandlers combines all EKS patch and variable handlers under a single handler.
// It allows to specify configuration under a single variable.
eksMetaHandlers := eks.New(globalOptions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we move this above the genericMetaHandlers to group all provider handlers?

@@ -173,6 +178,7 @@ func main() {
allHandlers = append(allHandlers, dockerMetaHandlers.AllHandlers(mgr)...)
allHandlers = append(allHandlers, nutanixMetaHandlers.AllHandlers(mgr)...)
allHandlers = append(allHandlers, genericMetaHandlers.AllHandlers(mgr)...)
allHandlers = append(allHandlers, eksMetaHandlers.AllHandlers(mgr)...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: also this next to the other provider handlers

@@ -187,6 +192,13 @@ func (s GenericClusterConfig) VariableSchema() clusterv1.VariableSchema { //noli

// GenericClusterConfigSpec defines the desired state of GenericClusterConfig.
type GenericClusterConfigSpec struct {
GenericClusterConfigResource `json:",inline"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please clarify why this is changing

patchHandlers = append(patchHandlers, metaMutators()...)

return mutation.NewMetaGeneratePatchesHandler(
"eksClusterV1ConfigPatch",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the version consistent across all providers? There is only a single v3 folder with all other handlers, I think its going to get very complicated trying to maintain different versions.

Suggested change
"eksClusterV1ConfigPatch",
"eksClusterV4ConfigPatch",

@jimmidyson jimmidyson force-pushed the jimmi/add-eks-external-api branch from 2dd9539 to 279c4bf Compare August 19, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants